//
//  JOLoginController.m
//  网易彩票
//
//  Created by song on 15/2/9.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "JOLoginController.h"
#import "JOSettingController.h"

@interface JOLoginController ()

@end

@implementation JOLoginController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImage *normal =[UIImage imageNamed:@"RedButton"];
    UIImage *hight = [UIImage imageNamed:@"RedButtonPressed"];
    
    [normal resizableImageWithCapInsets:UIEdgeInsetsMake(normal.size.height  * 0.5, normal.size.height * 0.5, normal.size.height  * 0.5, normal.size.height * 0.5)                            resizingMode:UIImageResizingModeStretch];
    [hight resizableImageWithCapInsets:UIEdgeInsetsMake(normal.size.height  * 0.5, normal.size.height * 0.5, normal.size.height  * 0.5, normal.size.height * 0.5)                            resizingMode:UIImageResizingModeStretch];
    
    [self.loginBtn setBackgroundImage:normal forState:UIControlStateNormal];
    
    [self.loginBtn setBackgroundImage:hight forState:UIControlStateHighlighted];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



- (IBAction)setting:(id)sender {
    
    JOSettingController *settingvc =[[JOSettingController alloc]init];
    [self.navigationController pushViewController:settingvc animated:YES];
}
@end
